<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		
		<script type="text/javascript">
			
			console.log("aaa");
			window.onload = function(){
				console.log("页面加载完成了");
				div01.textContent = "哈哈";
			}
			console.log("bbb");
			
			window.onresize = function()
			{
				console.log("窗体大小改变")
			}
		</script>
		<div id="div01">
			
		</div>
		
	</body>
</html>